﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BDSim
{
    public partial class ExportEnvFile : Form
    {
        public ExportEnvFile()
        {
            InitializeComponent();
        }

        public string FileName = "";

        private void button1_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();
            sfd.Filter = "文本文件(*.txt)|*.txt";
            if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.FileName = sfd.FileName;
                int index = sfd.FileName.LastIndexOf('\\');
                textBox1.Text = sfd.FileName.Remove(0, index + 1);
            }        
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
